package com.xiaotao.mapper;

import com.xiaotao.entity.Merchant;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * MerchantMapper继承基类
 */
@Mapper
@Repository
public interface MerchantMapper extends MyBatisBaseDao<Merchant, Integer> {
    List<Merchant> findAll();

    Merchant findByUsername(String password);

    List<Merchant> searchByKeyWord(@Param("keyword") String keyword, Integer status);

    List<Merchant> findByIds(List<Integer> ids);
}